package org.maiyoframework.assist.service;

import java.io.Serializable;
import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.maiyoframework.assist.entity.User;
import org.maiyoframework.core.jpa.Finder;
import org.maiyoframework.core.web.page.Page;

public interface UserSvc {

	public User save(User entity);

	public Integer deleteAll(Serializable... ids);

	public User deleteById(Serializable id);

	public void delete(User entity);

	public User update(User entity);

	public void updateDynamic(User entity);

	public User findById(Serializable id);

	public User findUnique(Finder finder);

	public Page<User> findPage(HttpServletRequest req, Integer pageNo,
			Integer pageSize);

	public List<User> findList(Finder finder, int start, int maxSize);

	public List<User> findList(Finder finder);

	public Long countResult(Finder finder);

}